#include "../lib/daytimelib.h"

int ServerInit(int type, int protocol, struct sockaddr_in servaddr) {

    int listenfd = Socket(servaddr.sin_family, SOCK_STREAM, 0);
    Bind(listenfd, (SA*) &servaddr, sizeof(servaddr));
    Listen(listenfd, LISTENQ);
    return listenfd;
}